"""
 @Author: xiangwuxiao
 @Email: xiangwuxiao@tencent.com
 @FileName: check_vport.py.py
 @DateTime: 2024/7/30 10:39
"""

import requests
import json

# url = "http://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=bd6bfccd-e49b-434f-b2eb-5cb11c6a3815"
# headers = {'Content-Type': 'application/json'}
# data = {
#     "chatid": "xiangwuxiao",
#     "msgtype": "text",
#     "text": {
#         "content": "hello world"
#     }
# }
# response = requests.post(url, data=json.dumps(data), headers=headers)
# print(response)
# print(response.status_code)  # 打印状态码
# print(response.text)  # 打印响应内容
#
# curl 'http://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=bd6bfccd-e49b-434f-b2eb-5cb11c6a3815' \
#    -H 'Content-Type: application/json' \
#    -d '
#    {
#         "chatid": "xiangwuxiao",
#         "msgtype": "text",
#         "text": {
#             "content": "hello world"
#         }
#    }'

a = " xxw"
group_names = a.strip().replace(" ", "").split(",")
print(group_names)